package com.linktel.productionLine.EasyExcel.dailyPlanning.model;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.linktel.productionLine.EasyExcel.ExcelNotation;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;

/**
 * 下载excel，定义爹日出勤数据对象
 *
 */
@Data
public class WriteDailyPlanning {
    @ExcelIgnore //忽略改属性
    private Long id;
    /**
     * 产线编码
     */
    @ExcelProperty(value = "产线编码",index = 0)
    @ColumnWidth(12)
    @ExcelNotation(value = "产线编码（必须在已有的产线名单中）",remarkColumnWide =(short)  2, remarkRowHigh = 2)
    private String productionLineCode;
    /**
     * 产线名称
     */
    @ExcelProperty(value = "产线名称",index = 1)
    @ColumnWidth(20)
    @ExcelNotation(value = "产线名称（必须在已有的产线名单中）",remarkColumnWide =(short) 2, remarkRowHigh = 2)
    private String productionLineName;
    /**
     * 关键工序编码
     */
    @ExcelProperty(value = "关键工序编码",index = 2)
    @ColumnWidth(12)
    @ExcelNotation(value = "关键工序编码（必须在已有的工序名单中）",remarkColumnWide =(short) 2, remarkRowHigh = 2)
    private String keyStepCode;
    /**
     * 关键工序名称
     */
    @ExcelProperty(value = "关键工序名称",index = 3)
    @ColumnWidth(24)
    @ExcelNotation(value = "关键工序名称（必须在已有的工序名单中）",remarkColumnWide =(short) 2, remarkRowHigh = 2)
    private String keyStepName;
    /**
     * 计划日期
     */
    @ExcelProperty(value = "计划日期",index = 4)
    @ColumnWidth(12)
    @ExcelNotation(value = "日期格式（2023/10/3,2023-10-12）",remarkColumnWide =(short)  2, remarkRowHigh = 2)
    private String planningDate;
    /**
     * 目标良率
     */
    @ExcelProperty(value = "目标良率",index = 5)
    @ColumnWidth(12)
    @ExcelNotation(value = "它是一个小于1的小数，表示百分比，比如 0.86",remarkColumnWide =(short)  2, remarkRowHigh = 2)
    private Double targetRate;

    /**
     * 计划产能
     */
    @ExcelProperty(value = "计划产能",index = 6)
    @ColumnWidth(12)
    @ExcelNotation(value = "它是一个整数，比如 3072",remarkColumnWide =(short)  2, remarkRowHigh = 1)
    private Integer capacity;

    /**
     * 计划排产
     */
    @ExcelProperty(value = "计划排产",index = 7)
    @ColumnWidth(12)
    @ExcelNotation(value = "它是一个整数，比如 3072",remarkColumnWide =(short)  2, remarkRowHigh = 1)
    private Integer scheduling;
}